package com.qiaoba.auth.constant;

/**
 * 在线用户 常量
 *
 * @author ailanyin
 * @date 2023-09-18 20:34:02
 */
public interface OnlineUserConstant {

    String ONLINE_KEY_PREFIX = "login:online_user:";

    String DEVICE_HASH_KEY = ONLINE_KEY_PREFIX + "online_user_device";

    String IP_LIST_KEY = ONLINE_KEY_PREFIX + "online_user_ip:";

    String USERNAME_LIST_KEY = ONLINE_KEY_PREFIX + "online_user_username:";

    String USER_INFO_SET_KEY = ONLINE_KEY_PREFIX + "online_user_info:";

    String LAST_LOGIN_USER_REDIS_KEY = ONLINE_KEY_PREFIX + "last_login_user:";

}
